package com.mall.module.user.domain.entity;

import lombok.Data;
import java.time.LocalDateTime;

@Data
public class UserCredential {
    /**
     * 凭证ID
     */
    private Long credentialId;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 认证类型(PASSWORD/WECHAT/ALIPAY/PHONE)
     */
    private String identityType;

    /**
     * 唯一标识(手机号/邮箱/第三方ID)
     */
    private String identifier;

    /**
     * 凭证(密码/TOKEN)
     */
    private String credential;

    /**
     * 密码盐
     */
    private String salt;

    /**
     * 是否验证
     */
    private Boolean verified;

    /**
     * 凭证过期时间
     */
    private LocalDateTime expireTime;
}